package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转的控制器
 * @author Administrator
 *
 */
@Controller
public class PageController {

	//后台页面的首页
	@RequestMapping("/")
	public String showIndex(){
		return "index";
	}
	
	//单击菜单显示对应的页面
	@RequestMapping(value="/{page}")
	public String showPage(@PathVariable String page){
		return page;
	}
}
